package net.servir.censo.web.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import net.servir.censo.model.Censo;
import net.servir.censo.service.CensoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DataInscripciones {

	@Autowired
	private CensoService censoService;
	@RequestMapping("/dataInscripciones.htm")
	public @ModelAttribute("censo")
	Censo censo(HttpServletRequest request) {
		HttpSession session = request.getSession();
		String cod_session =session.getId();
		Censo censo = new Censo();
		censo.setCod_session(cod_session);
		return censo;
	}
}
